import {ajax,base} from './config'
// tbScheduleController.do?getDeparttbScheduleController/findScl4groupOfId2List.do
export const getList  = params => { return ajax.getMinData({url:`${base}/tbScheduleController/findScl4groupOfId2List.do`, params:params}) };
// api/groupUserApi/getAnnouncementList.do
export const getAnnouncementList  = params => { return ajax.getMinData({url:`${base}/api/groupUserApi/getAnnouncementList.do`, params:params}) };
// userGroupController.do?getAllGroup
export const getAllGroup  = params => { return ajax.getMinData({url:`${base}/userGroupController/getAllGroup.do`, params:params}) };
// 
export const getUserInfo  = params => { return ajax.getMinData({url:`${base}/api/currentUser/getUserInfo.do`, params:params}) };

export const getAuthMenu  = params => { return ajax.getMinData({url:`${base}/api/authController/getAuthMenu.do`, params:params}) };

export const getmyList  = params => { return ajax.getMinData({url:`${base}/tbScheduleController/getPersonSch.do`, params:params}) };
//查询一个月的排班
export const getCalendarList  = params => { return ajax.getMinData({url:`${base}/tbScheduleController/getDepartSch.do`, params:params}) };
//人员列表
export const getPersonList  = params => { return ajax.getMinData({url:`${base}/groupUserController.do?groupAndUserDataGrid`, params}); };
